<template>
  <div class="count" @click='pr'>
    <span>{{type === 'plus'?'+':'-'}}</span>
  </div>
</template>

<script>
  export default {
    name: 'counterBtn',
    props: ['type'],
    methods:{
      pr (){
        let emitW = this.type === 'plus'?'plus':'reduce'
        this.$emit(emitW)
      }
    }
  }
</script>

<style lang="scss" scoped>
@import '../sass/mixin.scss';

</style>